package com.example.carbon.dao;

import com.example.carbon.pojo.ProductModel;
import com.example.carbon.pojo.dto.PageLimit;
import com.example.carbon.pojo.dto.ProduceModelDtoInsert;
import com.example.carbon.pojo.vo.ProduceModelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductModelDao {

    List<ProductModel> selectAllInfo(PageLimit pageLimit,String modelName);


    int selectAllCount(String modelName);

    ProduceModelVo selectModelById(int id);

    @Select("select model_name from product_model")
    List<String > selectAllModelName();

    boolean updateProductModel(ProduceModelDtoInsert produceModelDtoInsert,int id);

}
